﻿@page
@model BookLink.Pages.Books.DeleteModel

@{
    ViewData["Title"] = "Delete";
}

<h1>删除操作</h1>

<h3>确定删除这条记录?</h3>
<div>
    <hr />
    <div class="row">
        <div class="col-6 text-end">
            <img src="@Model.Book.ImageUrl" style="width:220px;height:280px" />
        </div>
        <dl class="col-6">
            <dt class="col-sm-2">
                @Html.DisplayNameFor(model => model.Book.Title)
            </dt>
            <dd class="col-sm-10">
                @Html.DisplayFor(model => model.Book.Title)
            </dd>
            <dt class="col-sm-2">
                @Html.DisplayNameFor(model => model.Book.ReleaseDate)
            </dt>
            <dd class="col-sm-10">
                @Html.DisplayFor(model => model.Book.ReleaseDate)
            </dd>
            <dt class="col-sm-2">
                @Html.DisplayNameFor(model => model.Book.CreationAt)
            </dt>
            <dd class="col-sm-10">
                @Html.DisplayFor(model => model.Book.CreationAt)
            </dd>
            <dt class="col-sm-2">
                @Html.DisplayNameFor(model => model.Book.Genre)
            </dt>
            <dd class="col-sm-10">
                @Html.DisplayFor(model => model.Book.Genre)
            </dd>


            <dt class="col-sm-2">
                @Html.DisplayNameFor(model => model.Book.Dowloadlink)
            </dt>
            <dd class="col-sm-10">
                @Html.DisplayFor(model => model.Book.Dowloadlink)
            </dd>
            @*<dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.Book.ImageUrl)
            </dt>
            <dd class="col-sm-10">
            @Html.DisplayFor(model => model.Book.ImageUrl)
            </dd>*@
            <dt class="col-sm-2">
                @Html.DisplayNameFor(model => model.Book.Author)
            </dt>
            <dd class="col-sm-10">
                @Html.DisplayFor(model => model.Book.Author)
            </dd>
            <dt class="col-sm-2">
                @Html.DisplayNameFor(model => model.Book.DownloadCount)
            </dt>
            <dd class="col-sm-10">
                @Html.DisplayFor(model => model.Book.DownloadCount)
            </dd>
        </dl>
    </div>

    <div class="row text-center">
        <form method="post">
            <input type="hidden" asp-for="Book.Id" />
            <input type="submit" value="Delete" class="btn btn-danger" /> |
            <a asp-page="./Index">返回列表</a>
        </form>
    </div>
</div>
